﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AdminAddNews.ascx.cs" Inherits="smartphone.UserControls.AdminAddNews" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit.HTMLEditor" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>

<div class="adminEdit">
    <form id="Form1" runat="server">
        <div class="adminTitleEdit">
            <asp:Label ID="LabelEdit" runat="server" Text="Thêm tin tức"></asp:Label>
        </div>

        <div class="adminEditContent">
            <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server"></asp:ToolkitScriptManager>
            <p>
                <label>Tiêu đề </label><asp:TextBox ID="TxtTitle" runat="server" Width="800"></asp:TextBox>
                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" CssClass="adminInputError" ControlToValidate="TxtTitle" runat="server" ErrorMessage="Bạn cần phải nhập tên"></asp:RequiredFieldValidator>
            </p>
        
            <label>Nội dung </label> <cc1:Editor ID="EditorContent" Width="800" Height="400" runat="server" />
                    
            <div class="adminBtn">
                <asp:Button ID="BtEditNews" runat="server" Text="Thêm tin" CssClass="adminButton adbtn" OnClick="BtEditNews_Click" />
                <asp:Button ID="BtEditNewsCancel" runat="server" Text="Hủy" CssClass="adminButton adbtn" CausesValidation="false" OnClick="BtEditNewsCancel_Click" />
            </div>
            
        </div>
        
    </form>
</div>